package edu.wata.service;

import java.util.List;
import java.util.Map;

import edu.wata.dao.ArticleJdbcDaoImpl;
import edu.wata.dao.iface.ArticleDao;
import edu.wata.domain.Article;
import edu.wata.service.iface.ArticleService;

public class ArticleServiceImpl implements ArticleService {

	private ArticleDao articleDao = new ArticleJdbcDaoImpl();

	@Override
	public List<Article> getArticle(String typeId) {
		return articleDao.getArticleByType(Integer.valueOf(typeId));
	}

	@Override
	public List<Map<String, Object>> getArticleMap(String typeId) {
		List<Map<String, Object>> list = articleDao.getArticleMapByType(Integer.valueOf(typeId));
		return list;
	}

}
